/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.emp.solbrillante.sales.dao;

/**
 *
 * @author TacbaranNew
 */
public abstract class DAOFactory {
    public static final int SQL_SERVER = 1;
    public static final int MY_SQL = 2;
    
    public static DAOFactory createFactory(int type) {
        DAOFactory daoFactory = null;
        switch(type){
            case SQL_SERVER: 
                //daoFactory = new SQLServerDAOFactory(); 
                break;
            case MY_SQL:    
                daoFactory = new MySQLDAOFactory();                 
                break;
        }
        
        return daoFactory;
    }
    
    public abstract ProveedorDAO getDAOProveedor();
    public abstract ProductoDAO getDAOProducto();
    public abstract UsuarioDAO getDAOUsuario();
    public abstract PaqueteDAO getDAOPaquete();
    public abstract Unidad_medidaDAO getDAOUnidad_medida();
    public abstract Tipo_productoDAO getDAOTipo_producto();
    public abstract PresentacionDAO getDAOPresentacion();
    
    
}
